version: '3.8'
services:
  redis:
    image: redis:6.2-alpine
    restart: always
    ports:
      - '6379:6379'
    command: redis-server --save 20 1 --loglevel warning
  redis-vectorsearch:
    image: redis/redis-stack-server:latest
    restart: always
    ports:
      - '6378:6379'
    command: redis-stack-server
  weaviate:
    image: semitechnologies/weaviate:1.19.7
    ports:
    - 8080:8080
    restart: on-failure:0
    environment:
      QUERY_DEFAULTS_LIMIT: 25
      AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: 'true'
      PERSISTENCE_DATA_PATH: '/var/lib/weaviate'
      DEFAULT_VECTORIZER_MODULE: 'none'
      CLUSTER_HOSTNAME: 'node1'
  db:
    image: ankane/pgvector
    ports:
      - 5433:5432
    volumes:
      - ./tmp/integration_tests/pgvector:/var/lib/postgresql/data
    environment:
      - POSTGRES_PASSWORD=ChangeMe
      - POSTGRES_USER=myuser
      - POSTGRES_DB=api